#
# File:   Makefile
# Author: Katherine Gibson (gibsonk@cis)
# Desc:   Makefile for Fall 2014 livecoding: polymorphism
#

a.out: poly.o exPoly.o
	g++ -g -Wall poly.o exPoly.o

poly.o: poly.cpp poly.h
	g++ -g -Wall -c poly.cpp

exPoly.o: exPoly.cpp poly.h
	g++ -g -Wall -c exPoly.cpp
make:
	xemacs Makefile &
run:
	./a.out
ddd:
	ddd a.out &

########################################
# rules for cleaning away excess files #
########################################
# removes .o and executable files
clean:
	rm  -f *.o a.out
# removes any temporary (~) files
cleaner: 
	rm  -f *~
# runs both clean and cleaner
c: clean cleaner



